<TreeView x:Class="SearchAndReplace.ResultsTreeView"
          xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
          xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
          VirtualizingStackPanel.IsVirtualizing="True">
	
	<TreeView.ItemContainerStyle>
		<Style TargetType="{x:Type TreeViewItem}">
			<Setter Property="IsExpanded" Value="{Binding IsExpanded, Mode=TwoWay}" />
			<Setter Property="IsSelected" Value="{Binding IsSelected, Mode=TwoWay}" />
		</Style>
	</TreeView.ItemContainerStyle>
	
	<TreeView.ItemTemplate>
		<HierarchicalDataTemplate ItemsSource="{Binding Children}">
			<ContentPresenter Content="{Binding Text}"/>
		</HierarchicalDataTemplate>
	</TreeView.ItemTemplate>
</TreeView>